package caiwei.android.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import caiwei.android.R;
import caiwei.android.activity.base.ActivityFrame;

/**
 * 基础知识之一 android系统框架图主Activity
 * 
 * @author caiwei
 * @date2012-3-19
 * @version 1.0
 */
public class ActivityGridBaseArchitecture extends ActivityFrame
{
	private ImageView mImageViewKernel, mImageViewLibraries,
			mImageViewFramework, mImageViewApplication;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		appendMainBody(R.layout.lay_architectrure);
		setTopBarTitle(getResources().getStringArray(R.array.GridBaseListView)[0]);
		removeBottomBox();
		mImageViewKernel = (ImageView) findViewById(R.id.ivArchitectureLinuxKernel);
		mImageViewKernel.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v)
			{
				openActivity(ActivityArchitectureKernel.class);
			}
		});
		mImageViewLibraries = (ImageView) findViewById(R.id.ivArchitectureLibraries);
		mImageViewLibraries.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v)
			{
				openActivity(ActivityArchitectureLibraries.class);
			}
		});
		mImageViewApplication = (ImageView) findViewById(R.id.ivArchitectureApplications);
		mImageViewApplication.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				openActivity(ActivityArchitectureApplication.class);
			}
		});
		mImageViewFramework = (ImageView) findViewById(R.id.ivArchitectureFramework);
		mImageViewFramework.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v)
			{
				openActivity(ActivityArchitectureFramework.class);
			}
		});
	}
}
